package com.share.finance.risk.third.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 所有第三方调用日志表
 * </p>
 *
 * @author author
 * @since 2022-07-27
 */
@Data
@Accessors(chain = true)
@TableName("trd_third_request_log")
public class ThirdRequestLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 接口号
     */
    @TableField(value = "int_ids")
    private String intIds;
    /**
     * 风控会话唯一标识
     */
    @TableField(value = "session_id")
    private String sessionId;
    /**
     * 产品编码
     */
    @TableField(value = "product_code")
    private String productCode;
    /**
     * 请求json数据
     */
    @TableField(value = "request_data")
    private String requestData;

    @TableField(value = "cycle_num")
    private Integer cycleNum;

    /**
     * 返回数据
     */
    @TableField(value = "response_data")
    private String responseData;

    @TableField(value = "exe_ip")
    private String exeIp;
    @TableField(value = "req_ip")
    private String reqIp;

    /**
     * 接口请求消耗时间(单位：毫秒)
     */
    @TableField(value = "process_time")
    private Long processTime;
    /**
     * 表创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

}
